home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / 80X86 / DOS32V33.ZIP / EXAMPLES / A_DLL.ASM next >
Encoding:
Assembly Source File  |  1995-11-27  |  723 b   |  40 lines

  1. ;**************************************************************************
  2. ; A_DLL.ASM
  3. ;             Example of a DLL file. This library file, A_DLL.DLL is loaded
  4. ; by the example program dlltest.exe.
  5. ;
  6. ;to build;
  7. ;
  8. ;   tasm a_dll.asm
  9. ;   dlink  test  -d a_dll
  10. ;
  11. ;**************************************************************************
  12. .386
  13. .model flat, C
  14.  
  15. .code
  16.  
  17.  ; Define the public varible 'DOS32_DLL' as an array of each function in
  18.  ; this libraray.
  19.  
  20.  
  21. Public DOS32_DLL
  22.  
  23. DOS32_DLL  DD print_string
  24.            DD wait_for_key
  25.  
  26.  
  27. print_string  proc
  28.     mov ah,9
  29.     int 21h
  30.     ret
  31. print_string  endp
  32.  
  33.  
  34. wait_for_key  proc
  35.     mov ah,0
  36.     int 16h
  37.     ret
  38. wait_for_key  endp
  39.  
  40. end